//结构体
#include <stdio.h>
#include <string.h>
//结构体类型申明
struct Staff
{
    int ID;
    char caName[32];
    float Salary;
};
int main(void)
{
    int a=90;  //初始化
    //类型名：int
    //变量名：a

    struct Staff jack={1001,"jack",100000};   //初始化
    //类型名：Staff
    //变量名：jack

    //赋值
    //a=89;                       true
    //jack={1001,"jack",100000};  false
    jack.ID=1002;               //true
    strcpy(jack.caName,"rose"); //true

    //访问
    printf("id=%d,name=%s,salary=%g\n",jack.ID,jack.caName,jack.Salary);
    return 0;
}